package com.example.pt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import java.util.Date;

/**
 * 种子收藏实体类
 */
@Entity
@Table(name = "torrent_favorite")
@TableName("torrent_favorite")
public class TorrentFavorite {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    private Integer uid;
    
    private Integer tid;
    
    private Date createTime;
    
    private String note;
    
    public TorrentFavorite() {
    }
    
    public TorrentFavorite(Integer uid, Integer tid, Date createTime, String note) {
        this.uid = uid;
        this.tid = tid;
        this.createTime = createTime;
        this.note = note;
    }
    
    public Integer getId() {
        return id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    
    public Integer getUid() {
        return uid;
    }
    
    public void setUid(Integer uid) {
        this.uid = uid;
    }
    
    public Integer getTid() {
        return tid;
    }
    
    public void setTid(Integer tid) {
        this.tid = tid;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public String getNote() {
        return note;
    }
    
    public void setNote(String note) {
        this.note = note;
    }
    
    @Override
    public String toString() {
        return "TorrentFavorite{" +
                "id=" + id +
                ", uid=" + uid +
                ", tid=" + tid +
                ", createTime=" + createTime +
                ", note='" + note + '\'' +
                '}';
    }
} 